﻿using System;
using System.Text;

/*
 * Write a program that reads from the console a string of maximum 20 characters.
 * If the length of the string is less than 20, the rest of the characters should be
 * filled with '*'. Print the result string into the console.
 */

namespace StringFill
{
    class StringFill
    {
        static void Main()
        {
            Console.WriteLine("Enter a string with maximum 20 characters:");
            string consoleInput = Console.ReadLine();
            StringBuilder result = new StringBuilder(consoleInput, 20);

            if (consoleInput.Length < 20)
            {
                result.Append(new String('*', 20 - consoleInput.Length));
            }

            Console.WriteLine(result.ToString());
        }
    }
}
